package com.xiao.dynamic_rule.utils;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.client.Connection;
import org.apache.hadoop.hbase.client.ConnectionFactory;

import java.io.IOException;

public class HbaseUtils {
    public static Connection HbaseConnect (String zkQuorum) throws IOException {
        Configuration conf = new Configuration();
        conf.set("hbase.zookeeper.quorum",zkQuorum);
        return ConnectionFactory.createConnection(conf);
    }
}
